import React from "react"

class Child extends React.Component {
    state = {
        msg: "子组件中的一个属性"
    }
    render() {
        return (
            <fieldset>
                <legend>子组件</legend>
                <h1>{this.state.msg}</h1>
            </fieldset>
        )
    }
}

export default Child 